package com.ws.soa.consumer.dao.mapper;

import com.ws.soa.consumer.domain.WorksDO;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * WorksDAO继承基类
 */
@Repository
public interface WorksMapper extends MyBatisBaseMapper<WorksDO, String> {

  int increaseCommentNum(@Param("id") String id, @Param("opTime") Long opTime);

  int increaseLaudNum(@Param("id") String id, @Param("opTime") Long opTime);

  List<WorksDO> findAllByUserId(@Param("userId") String userId);


  List<WorksDO> findAll();

  /**
   * 根据 id 查找
   *
   * @param workIds id
   * @return list
   */
  List<WorksDO> findWorkInWorkIds(@Param("workIds") List<String> workIds);

}